export const searchForm = [
    {
        type: 'rangePicker',
        key: 'startClassTime',
        label: '支付时间',
        props: {

        }
    },
    {
        type: 'select',
        key: 'secondClassifyName',
        // 联动
        dependItemKey: 'firstClassifyName',
        label: '二级渠道',
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple'
        }
    },
    {
        type: 'select',
        key: 'providerName',
        label: '渠道代理',
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple',
            showSearch: true,
            filterOption: false,
        }
    }
];

// 页面id
export const pageId = {
    0: {
        id: '',
        title: '流量风控',
        selectID: 'selectUnit_9'
    },
};

// 纬度id由页面id 和 纬度key拼接成, 小驼峰
export const getDimensionId = (index, searchKey) => {
    if (searchKey && pageId[index].id) {
        const newSearchKey = searchKey.slice(0, 1).toUpperCase() + searchKey.slice(1);

        return pageId[index].id + newSearchKey;
    }

    return '';
};

const PARTTYPE1 = {
    ONE: 1,
    TWO: 2,
    THREE: 3
};

export const META = {
    [PARTTYPE1.ONE]: {
        PART_ONE_CARD_ONE: 'RiskControlOnePart_partOne_card_1',
        PART_ONE_COMPOSITE_ONE: 'RiskControlOnePart_partTwo_composite_1',
        PART_ONE_COMPOSITE_TWO: 'RiskControlOnePart_partThree_composite_1',
        PART_ONE_EXCEL_ONE: 'RiskControlOnePart_partTwo_excel_1',
        PART_ONE_EXCEL_TWO: 'RiskControlOnePart_partThree_excel_1',
        PART_ONE_TEXT_ONE: 'RiskControlOnePart_partOne_text_3',
        PART_ONE_TEXT_TWO: 'RiskControlOnePart_partOne_text_1',
        PART_ONE_TEXT_THREE: 'RiskControlOnePart_partOne_text_2',
    },
    [PARTTYPE1.TWO]: {
        PART_ONE_CARD_ONE: 'RiskControlTwoPart_partOne_card_1',
        PART_ONE_COMPOSITE_ONE: 'RiskControlTwoPart_partTwo_composite_1',
        PART_ONE_COMPOSITE_TWO: 'RiskControlTwoPart_partThree_composite_1',
        PART_ONE_EXCEL_ONE: 'RiskControlTwoPart_partTwo_excel_1',
        PART_ONE_EXCEL_TWO: 'RiskControlTwoPart_partThree_excel_1',
        PART_ONE_TEXT_ONE: 'RiskControlTwoPart_partOne_text_3',
        PART_ONE_TEXT_TWO: 'RiskControlTwoPart_partOne_text_1',
        PART_ONE_TEXT_THREE: 'RiskControlTwoPart_partOne_text_2',
    },
    [PARTTYPE1.THREE]: {
        PART_ONE_CARD_ONE: 'RiskControlThreePart_partOne_card_1',
        PART_ONE_COMPOSITE_ONE: 'RiskControlThreePart_partTwo_composite_1',
        PART_ONE_COMPOSITE_TWO: 'RiskControlThreePart_partThree_composite_1',
        PART_ONE_EXCEL_ONE: 'RiskControlThreePart_partTwo_excel_1',
        PART_ONE_EXCEL_TWO: 'RiskControlThreePart_partThree_excel_1',
        PART_ONE_TEXT_ONE: 'RiskControlThreePart_partOne_text_3',
        PART_ONE_TEXT_TWO: 'RiskControlThreePart_partOne_text_1',
        PART_ONE_TEXT_THREE: 'RiskControlThreePart_partOne_text_2',
    }
};

export const PART_THREE_CARD_ID = 'RiskControlThreePart_partOne_card_1';

export const PART_THREE_COMPOSITE_ONE_ID = 'RiskControlThreePart_partTwo_composite_1';

export const PART_THREE_COMPOSITE_TWO_ID = 'RiskControlThreePart_partThree_composite_1';

export const PART_ONE_TITLE = {
    [PARTTYPE1.ONE]: 'I. 信息流低效素材',
    [PARTTYPE1.TWO]: 'II. 信息流低效页面及素材',
    [PARTTYPE1.THREE]: 'III. 信息流高成本素材'
};

